
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[usp_ShowPositionsCompany]
	(
	@param_participants_apply INT

	)
	
AS
	/* SET NOCOUNT ON */
	SELECT  topic,
	        current_stage ,
	        degree ,
	        dbo.JOL_Recruitment_Position.id ,
	        position ,
	        professional ,
	        quantity ,
	        target,
	        employing_unit,
	        JOL_Employer_Name,
	        participants_apply
	 FROM dbo.JOL_Recruitment_Participants_apply,dbo.JOL_Recruitment_Position,dbo.JOL_Recruitment,dbo.JOL_Employer
	 WHERE
	 participants_apply=dbo.JOL_Recruitment_Participants_apply.id AND
	  recruitment=dbo.JOL_Recruitment.id 
	  AND employing_unit=JOL_Employer_No 	   	   
	  AND  participants_apply=@param_participants_apply
	 ORDER BY dbo.JOL_Recruitment_Position.update_time,dbo.JOL_Recruitment_Position.add_time DESC
	RETURN
GO
